package model

type User struct {
	Model
	Username string      `gorm:"comment:用户名;type:VARCHAR(255)"`
	Login    string      `gorm:"comment:登录名;type:VARCHAR(64);UNIQUE"`
	Password string      `gorm:"comment:密码;type:VARCHAR(64)"`
	Salt     string      `gorm:"comment:密码;type:VARCHAR(8)"`
	Memo     string      `gorm:"comment:备注;type:VARCHAR(255)"`
	Roles    IntSplitStr `gorm:"comment:角色;type:TEXT"`
	Status   LimitStatus `gorm:"comment:状态 0-ok 1-锁定;type:TINYINT(4)"`
	Company  string      `gorm:"comment:工作单位;type:VARCHAR(255)"`
	Email    string      `gorm:"comment:电子邮件;type:VARCHAR(255)"`
}
